const config = {
  database: {
    type: 'postgres',
    host: 'localhost',
    port: 5432,
    username: 'postgres',
    password: 'postgres',
    database: 'lamppostData',
    autoLoadEntities: true,
    synchronize: true,
    entities: [],
    keepConnectionAlive: true,
  },
  redisCache: {
    host: 'localhost',
    port: 6379,
    duration: 30 * 1000, //数据库查询缓存时间30s
  },
  redisToken: {
    port: 6379,
    host: '127.0.0.1',
    password: '',
    db: 0,
  },
  redisLamp: {
    lampCounterKey: 'lampCounter', //库存计数器key
    lampHashKey: 'lamp-temp',
    lampTempLockKey: 'lock-lamp-update', //同步锁的键
    name: 'lamp',
    host: '192.168.72.128',
    port: 6379,
    db: 1,
  },
  logger: ['error', 'warn', 'log', 'debug', 'verbose'],
};

export default config;
